/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.toools.gwt.wmc.server.dao;

import java.util.Collection;
import org.toools.gwt.wmc.client.exceptions.dao.EmailExistsException;
import org.toools.gwt.wmc.client.exceptions.dao.WrongLoginException;
import org.toools.gwt.wmc.jpa.Account;

/**
 *
 * @author roman schoenbichler
 */
public interface IAccountDAO {
    Account getAccountByID( Integer id );
    Collection<Account> getAccounts();
    Account Login( String email, String pwd ) throws WrongLoginException;
    Integer Register( Account a ) throws EmailExistsException;
    Boolean delete( Account a );
    Boolean update( Account a );
}
